package com.josework.springhelloworld.service.impl;

import com.josework.springhelloworld.service.Quest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.io.PrintStream;


public class SlayDragonQuest implements Quest {

    private PrintStream stream;

    public SlayDragonQuest(PrintStream stream){
        this.stream = stream;
    }

    @Override
    public void embark() {
        System.out.println("knight Slay Dragon...");
    }
}
